package com.wu.cloud.custom.service;


import bean.PeskResponseEntity;
import com.wu.cloud.custom.service.impl.UserServiceErrorImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author xwu36
 */
@FeignClient(name = "user-center", fallback = UserServiceErrorImpl.class)
public interface UserFeignService {

    /**
     * 获取用户列表
     * @param params 用户查询列表的参数
     * @return json
     */
    @RequestMapping(value ="/user/list")
    PeskResponseEntity getUserList(@RequestParam Map<String,Object> params);
}
